import request from '@/utils/request'
// 客户


//获取会员列表
export function getGoodsRuleList(params) {
    return request({
        url: '/mall/product/rule',
        method: 'get',
        params
    })
}
//

export function getGoodsRuleSelectlists(params) {
    return request({
        url: '/mall/product/rule/getSelectLists',
        method: 'get',
        params
    })
}
export function detailGoodsRule(id) {
    return request({
        url: '/mall/product/rule/detail',
        method: 'get',
        params:{"id":id}
    })
}

export function createGoodsRule(data) {
    return request({
        url: '/mall/product/rule/create',
        method: 'post',
        data
    })
}

export function updateGoodsRule(data) {
    return request({
        url: '/mall/product/rule/update',
        method: 'put',
        data
    })
}
export function deleteGoodsRule(data) {
    return request({
        url: '/mall/product/rule/delete',
        method: 'delete',
        data
    })
}
